const Layout = import('@/layout/index.vue')

// @ts-ignore
export const basicRoutes = [
    {
        path: '/',
        name: 'Dashboard',
        component: () => Layout,
        meta: {
            title: '仪表盘',
            icon: 'icon-park:dashboard-car',
            order: 0,
            keepAlive: true,
        },
        redirect: '/console',
        children: [
            {
                path: '/console',
                name: 'Console',
                component: () => import('@/views/dashboard/console/index.vue'),
                meta: {
                    title: '主控台',
                    icon: 'icon-park:game-console-one',
                    order: 0,
                    keepAlive: true,
                }
            },
            {
                path: '/workbench',
                name: 'Workbench',
                component: () => import('@/views/dashboard/workbench/index.vue'),
                meta: {
                    title: '工作台',
                    icon: 'icon-park:workbench',
                    order: 0,
                    keepAlive: true,
                }
            },

        ]
    },
    {
        path: '/user',
        name: 'UserManagement ',
        component: () => Layout,
        meta: {
            title: '用户管理',
            icon: 'icon-park:data-user',
            order: 0,
        },
        children: [
            {
                path: 'users',
                name: 'users',
                component: () => import('@/views/user/list/index.vue'),
                meta: {
                    title: '用户列表',
                    icon: 'icon-park:every-user',
                    order: 0,
                    keepAlive: true,
                },
            }, {
                path: 'patients',
                name: 'Patients',
                component: () => import('@/views/user/patient-list/index.vue'),
                meta: {
                    title: '患者列表',
                    icon: 'icon-park:wrong-user',
                    order: 0,
                    keepAlive: true,
                },
            }, {
                path: 'nurses',
                name: 'Nurses',
                component: () => import('@/views/user/nurse-list/index.vue'),
                meta: {
                    title: '职工列表',
                    icon: 'icon-park:right-user',
                    order: 0,
                    keepAlive: true,
                },
            }, {
                path: 'admin',
                name: 'Admin',
                component: () => import('@/views/user/admin-list/index.vue'),
                meta: {
                    title: '管理员列表',
                    icon: 'icon-park:user-business',
                    order: 0,
                    keepAlive: true,
                },
            }
        ]
    },
    {
        path: '/identity',
        name: 'identity',
        component: () => Layout,
        children: [
            {
                path: 'check',
                name: 'check',
                component: () => import('@/views/identity/check/index.vue'),
                meta: {
                    title: '身份审核',
                    icon: 'icon-park:user-positioning',
                    order: 0,
                    keepAlive: true,
                }
            }
        ]
    },
    {
        path: '/hospital',
        name: 'hospital',
        component: () => Layout,
        meta: {
            title: '医院管理',
            icon: 'icon-park:hospital-four',
            order: 0,
        },
        children: [
            {
                path: 'list',
                name: 'hospitalList',
                component: () => import('@/views/hospital/list/index.vue'),
                meta: {
                    title: '医院列表',
                    icon: 'icon-park:hospital-two',
                    order: 0,
                    keepAlive: true,
                },
            },
            {
                path: 'edit',
                name: 'hospitalEdit',
                component: () => import('@/views/hospital/edit/index.vue'),
                meta: {
                    title: '医院编辑',
                    icon: 'icon-park:edit-name',
                    order: 0,
                    keepAlive: true,
                },
            },]
    },
    {
        path: '/schedule',
        name: 'scheduleManagement ',
        component: () => Layout,
        meta: {
            title: '排班计划',
            icon: 'icon-park:schedule',
            order: 0,
        },
        children: [
            {
                path: 'nurse',
                name: 'nurse',
                component: () => import('@/views/schedule/nurse/index.vue'),
                meta: {
                    title: '护士排班',
                    icon: 'icon-park:add-web',
                    order: 0,
                    keepAlive: true,
                },
            },
            {
                path: 'list',
                name: 'scheduleList',
                component: () => import('@/views/schedule/list/index.vue'),
                meta: {
                    title: '排班列表',
                    icon: 'icon-park:add-subtract',
                    order: 0,
                    keepAlive: true,
                },
            },]
    },
    {
        path: '/appointment',
        name: 'appointment',
        component: () => Layout,
        children: [
            {
                path: 'list',
                name: 'appointment',
                component: () => import('@/views/appointment/list/index.vue'),
                meta: {
                    title: '预约记录',
                    icon: 'icon-park:appointment',
                    order: 0,
                    keepAlive: true,
                }
            },
            {
                path: 'result',
                name: 'result',
                isHidden: true,
                component: () => import('@/views/appointment/result/index.vue'),
                meta: {
                    title: '就诊结果',
                    icon: 'icon-park:data-arrival',
                    order: 0,
                }
            }
        ]
    },
    {
        path: '/notice',
        name: 'notice',
        component: () => Layout,
        children: [
            {
                path: 'list',
                name: 'list',
                component: () => import('@/views/notice/list/index.vue'),
                meta: {
                    title: '系统公告',
                    icon: 'icon-park:volume-notice',
                    order: 0,
                    keepAlive: true,
                }
            }
        ]
    },
    {
        path: '/article',
        name: 'article',
        component: () => Layout,
        children: [
            {
                path: 'list',
                name: 'article',
                component: () => import('@/views/article/list/index.vue'),
                meta: {
                    title: '文章管理',
                    icon: 'icon-park:bank-card-one',
                    order: 0,
                    keepAlive: true,
                },
            },
            {
                path: '/article/examine',
                name: 'examine',
                isHidden: true,
                component: () => import('@/views/article/examine/index.vue'),
                meta: {
                    title: '文章审核',
                    icon: 'icon-park:mini-sd-card',
                    order: 0,
                    keepAlive: true,
                }
            }
        ]
    },
    {
        path: '/interaction',
        name: 'interaction',
        component: () => Layout,
        meta: {
            title: '互动管理',
            icon: 'icon-park:text-message',
            order: 0,
        },
        children: [
            {
                path: 'comment',
                name: 'comment',
                component: () => import('@/views/interaction/comment/list/index.vue'),
                meta: {
                    title: '评论列表',
                    icon: 'icon-park:message-one',
                    order: 0,
                    keepAlive: true,
                }
            },
            {
                path: 'reply',
                name: 'reply',
                component: () => import('@/views/interaction/reply/list/index.vue'),
                meta: {
                    title: '回复列表',
                    icon: 'icon-park:message-sent',
                    order: 0,
                    keepAlive: true,
                }
            },
            {
                path: 'like',
                name: 'like',
                component: () => import('@/views/interaction/like/list/index.vue'),
                meta: {
                    title: '点赞列表',
                    icon: 'icon-park:like',
                    order: 0,
                    keepAlive: true,
                }
            }
        ]
    },
    {
        path: '/invitation',
        name: 'invitation',
        component: () => Layout,
        children: [
            {
                path: 'list',
                name: 'code',
                component: () => import('@/views/invitation/list/index.vue'),
                meta: {
                    title: '邀请码',
                    icon: 'icon-park:pay-code-one',
                    order: 0,
                    keepAlive: true,
                }
            }
        ]
    },
    {
        path: '/error-page',
        name: 'Error',
        component: () => Layout,
        children: [
            {
                path: '404',
                name: '404',
                component: () => import('@/views/error-page/404.vue'),
                meta: {
                    title: '错误页',
                    icon: 'icon-park:error',
                    order: 99,
                    keepAlive: true,
                },
            }
        ]
    },
    {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/login/index.vue'),
        meta: {
            title: '登录',
            icon: 'ri:money-cny-box-line',
            order: 0,
        },
        isHidden: true
    }
]


